<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>仓库初始化</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="../../../elementUI/index.css">
  <link rel="stylesheet" href="../../../css/index.css">
</head>

<body>
  <div id="app" class="minWidth">
    <div class="table_titel">
      <div class="titel">仓库初始化 ({{Warehouse.Warehouse_Name}})</div>
      <div>
        <el-upload id="Excel" class="upload-demo" action="" :before-remove="XlsxbeforeRemove" :file-list="fileXlsx"
        :before-upload="uploadXLSX">
          <span slot="tip" class="el-upload__tip" v-show="fileXlsx.length<1">请上传xlsx表格</span>
          <el-button type="success">导入</el-button>
        </el-upload>
      </div>
    </div>
    <el-form :model="form" ref="contract" inline-message="true" style="width: 100%">
      <el-table :data="table.List.slice((form.page-1)*form.limit,form.page*form.limit)" stripe border
        height="calc(100vh - 200px)" style="width: 100%">
        <el-table-column label="序号" width="50" type="index"></el-table-column>
        <el-table-column prop="Article_SerialNumber" label="商品流水号"></el-table-column>
        <el-table-column prop="Article_Name" label="商品名称"></el-table-column>
        <el-table-column prop="Inventory_Total_Quantity" label="入库数量"></el-table-column>
      </el-table>
      <el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange"
        :current-page="form.page" :page-sizes="[10, 20, 30, 50, 100]" :page-size="form.limit"
        layout="total, sizes, prev, pager, next, jumper" :total="total">
      </el-pagination>
      <el-form-item class="form-operation">
        <el-button @click="window.history.back()">返回</el-button>
        <el-button type="primary" :loading="loading" @click="submitForm('contract')">提交</el-button>
      </el-form-item>
    </el-form>

  </div>
  <script type="text/javascript" src="../../../js/jquery-3.6.0.min.js"></script>
  <script type="text/javascript" src="../../../js/jquery.cookie.js"></script>
  <script type="text/javascript" src="../../../js/vue.min.js"></script>
  <script type="text/javascript" src="../../../elementUI/index.js"></script>
  <script type="text/javascript" src="../../../js/FileSaver.min.js"></script>
  <script type="text/javascript" src="../../../js/FileSaver.js"></script>
  <script type="text/javascript" src="../../../js/xlsx.full.min.js"></script>
  <script type="text/javascript" src="../../../js/utils.js"></script>
  <script type="text/javascript" src="./js/Initialization.js"></script>
</body>

</html>